package com.niiwoo.civet.user.dao.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class JPushRecord {
    private Long id;

    private String userId;

    private String sendMessage;

    private Long sendTo;

    private Byte status;

    private String ext;

    private Byte times;

    private Date sendTime;

    private Date createTime;

    private Date updateTime;

    /**
     * 发送状态枚举
     */
    public enum StatusEnum{
        INIT((byte)0,"初始化"),
        SUCCESS((byte)1,"成功"),
        FAIL((byte)2,"失败");

        private Byte status;
        private String desc;

        StatusEnum(Byte status, String desc) {
            this.status = status;
            this.desc = desc;
        }

        public Byte getStatus() {
            return status;
        }

        public void setStatus(Byte status) {
            this.status = status;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}